import { buildModule } from '@nomicfoundation/hardhat-ignition/modules'

// 合约地址(sepolia): 0xBDa285421b5f0183593A2c702a34ca976fecFaFE
// 合约地址(mainnet):
export default buildModule('JustNFTModule', m => {
  const account1 = m.getAccount(0)
  const contract = m.contract('JustNFT')
  // const contract = m.contractAt('JustNFT', '0xBDa285421b5f0183593A2c702a34ca976fecFaFE')
  m.call(contract, 'safeMint', [m.getParameter('ownerAddress'), m.getParameter('metaDataUri')], {
    from: account1
  })
  return { contract }
})
